Marc
Dr TeiGnEuX
Administrateur
Populaire: +113/-0
Hors ligne
Sexe:
Version: SMFGRATUIT
Thème: smfgratuit
Messages: 6026
Posteur à 40%
Chrome 131.0.0.0 Win 64
|
|
« Répondre #11 le: 18 Octobre 2008 à 09:34:23 » |
|
Alors pour la liste des sectionsEditer le fichier BoardIndex.template.php de ton thème - Chercher:
echo ' <table border="0" width="100%" cellspacing="1" cellpadding="5" > <tr class="titlebg3"> <td colspan="2">', $txt[20], '</td> <td width="6%" align="center">', $txt[21], '</td> <td width="6%" align="center">', $txt[330], '</td> <td width="24%" align="center">', $txt[22], '</td> </tr>';
Remplacer par:
echo ' <table border="0" width="100%" cellspacing="1" cellpadding="5" > <tr class="titlebg3"> <td colspan="2">', $txt[20], '</td> <td width="6%" align="center">', $txt[21], '</td> <td width="6%" align="center">', $txt[330], '</td> </tr>';
- Chercher:
<td class="windowbg2" width="50%"> <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br /> ', $board['description'];
Ajouter après:
if (!empty($board['last_post']['id'])) echo ' <span class="lastpost"><b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'], ' ', $txt[30], ' ', $board['last_post']['time'] , ' ', $txt['smf88'], ' ', $board['last_post']['link'], '</span>';
- Chercher:
<td class="windowbg" valign="middle" align="center" width="6%"> ', $board['topics'],' </td> <td class="windowbg" valign="middle" align="center" width="6%"> ', $board['posts'], '
Remplacer par:
<td class="windowbg2" valign="middle" align="center" width="8%"> <span class="largetext">', $board['posts'],'</span><br /><span class="smalltext">', $txt[21], '</span> </td> <td class="windowbg2" valign="middle" align="center" width="8%"> <span class="largetext">', $board['topics'],'</span><br /><span class="smalltext">', $txt[330], '</span>
- supprimer:
</td> <td class="windowbg2" valign="middle" width="24%"> <span class="smalltext">';
/* The board's and children's 'last_post's have: time, timestamp (a number that represents the time.), id (of the post), topic (topic id.), link, href, subject, start (where they should go for the first unread post.), and member. (which has id, name, link, href, username in it.) */ if (!empty($board['last_post']['id'])) echo ' <b>', $txt[22], '</b> ', $txt[30], ' ', $board['last_post']['time'] , '<br /> ', $txt[525], ' ', $board['last_post']['member']['link'], ' ', $txt['smf88'], ' ', $board['last_post']['link']; echo ' </span> </td>
Alors pour la liste des messagesEditer le fichier MessageIndex.template.php de ton thème - Chercher:
<tr class="titlebg3"> <td colspan="2">', $txt[20], '</td> <td width="6%" align="center">', $txt[21], '</td> <td width="6%" align="center">', $txt[330], '</td> <td width="24%" align="center">', $txt[22], '</td> </tr>';
Remplacer par:
<tr class="titlebg3"> <td colspan="2">', $txt[20], '</td> <td width="6%" align="center">', $txt[21], '</td> <td width="6%" align="center">', $txt[330], '</td> </tr>';
- Chercher:
<td class="windowbg2"> <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br /> ', $board['description'];
Ajouter après:
if (!empty($board['last_post']['id'])) echo ' <span class="lastpost"><b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'], ' ', $txt[30], ' ', $board['last_post']['time'] , ' ', $txt['smf88'], ' ', $board['last_post']['link'], '</span>';
- Chercher:
<td class="windowbg" valign="middle" align="center" width="6%"> ', $board['topics'],' </td> <td class="windowbg" valign="middle" align="center" width="6%"> ', $board['posts'], '
Remplacer par:
<td class="windowbg2" valign="middle" align="center" width="8%"> <span class="largetext">', $board['posts'],'</span><br /><span class="smalltext">', $txt[21], '</span> </td> <td class="windowbg2" valign="middle" align="center" width="8%"> <span class="largetext">', $board['topics'],'</span><br /><span class="smalltext">', $txt[330], '</span>
- Supprimer:
<td class="windowbg2" valign="middle" width="24%">';
/* The board's and children's 'last_post's have: time, timestamp (a number that represents the time.), id (of the post), topic (topic id.), link, href, subject, start (where they should go for the first unread post.), and member. (which has id, name, link, href, username in it.) */ if (!empty($board['last_post']['id'])) echo ' <b>', $txt[22], '</b> ', $txt[30], ' ', $board['last_post']['time'] , '<br /> ', $txt[525], ' ', $board['last_post']['member']['link'], ' ', $txt['smf88'], ' ', $board['last_post']['link'];
echo ' </td>
- Chercher:
<td width="9%" colspan="2" class="catbg3"></td>
<td class="catbg3"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[70], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td class="catbg3" width="11%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[109], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td class="catbg3" width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[110], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td class="catbg3" width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[301], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';
Remplacer par:
<td width="10%" colspan="2" class="catbg3">', $txt[110], '</td>
<td class="catbg3"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[70], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td class="catbg3" width="25%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';
- Chercher:
<td class="catbg3" width="100%" colspan="7"><b>', $txt[151], '</b></td>';
Remplacer par:
<td class="catbg3" width="100%" colspan="4"><b>', $txt[151], '</b></td>';
- Chercher:
<tr> <td class="windowbg2" valign="middle" align="center" width="5%"> <img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" /> </td> <td class="windowbg2" valign="middle" align="center" width="4%"> <img src="', $topic['first_post']['icon_url'], '" alt="" /> </td> <td class="windowbg' , !empty($settings['seperate_sticky_lock']) && $topic['is_sticky'] ? '3' : '' , '" valign="middle" ', (!empty($topic['quick_mod']['remove']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>';
if (!empty($settings['seperate_sticky_lock'])) echo ' ' , $topic['is_locked'] ? '<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" id="lockicon' . $topic['first_post']['id'] . '" style="margin: 0;" />' : '' , ' ' , $topic['is_sticky'] ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" id="stickyicon' . $topic['first_post']['id'] . '" style="margin: 0;" />' : '';
Remplacer par:
<tr> <td class="windowbg' , $topic['is_sticky'] ? '_sticky' : '' , '" valign="middle" align="center" width="6%"> <span class="largetext">', $topic['replies'], '</span><br /><span class="smalltext">', $txt[110], '</span> </td> <td class="windowbg' , $topic['is_sticky'] ? '_sticky' : '' , '" valign="middle" align="center" width="4%"> <img src="', $topic['first_post']['icon_url'], '" alt="" /> </td> <td class="windowbg' , $topic['is_sticky'] ? '_sticky' : '' , '" valign="middle" ', (!empty($topic['quick_mod']['remove']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>';
if (!empty($settings['seperate_sticky_lock'])) echo ' ' , $topic['is_locked'] ? '<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" id="lockicon' . $topic['first_post']['id'] . '" style="margin-right: 3px;" />' : '' , ' ' , $topic['is_sticky'] ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" id="stickyicon' . $topic['first_post']['id'] . '" style="margin-right: 3px;" />' : '';
- Chercher:
echo ' <small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small> </td> <td class="windowbg2" valign="middle" width="14%"> ', $topic['first_post']['member']['link'], ' </td> <td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center"> ', $topic['replies'], ' </td> <td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center"> ', $topic['views'], ' </td> <td class="windowbg2" valign="middle" width="22%"> <a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" style="float: right;" /></a> <span class="smalltext"> ', $topic['last_post']['time'], '<br /> ', $txt[525], ' ', $topic['last_post']['member']['link'], ' </span> </td>';
Remplacer par:
echo ' <small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small><br /> <span class="smalltext">', $txt[195], ' ', $topic['first_post']['member']['link'], ' ',$txt[30], ' ', $topic['first_post']['time'], '</span><br /> <small>', $txt[301], ' : ', $topic['views'], '</small> </td> <td class="windowbg' , $topic['is_sticky'] ? '_sticky' : '' , '" valign="middle" width="25%"> <img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" style="float: right;" /> <span class="smalltext"> <a href="', $topic['last_post']['href'], '"><strong>', $txt[111], '</strong></a> ', $txt[525], ' ', $topic['last_post']['member']['link'], '<br /> ',$txt[30], ' ', $topic['last_post']['time'], '<br /> </span> </td>';
|